// 从缓存中读取id或从0开始
let id:number = parseInt(window.localStorage.getItem('_idMax')||'0' )||0
function createId(){
    id++
    window.localStorage.setItem('_idMax',JSON.stringify(id))
    return id
}
export default createId